package ar.com.ford.it.fullEconomics.struct;

public class CounterStruct {
    
    private int count;
    private int errors;
    private int warnings;
    
    public CounterStruct(){
        count = 0;
        errors = 0;
        warnings = 0;
    }
    
    public CounterStruct add(CounterStruct counter){
        CounterStruct ret = new CounterStruct();
        ret.count = count +counter.count;
        ret.errors = errors + counter.errors;
        ret.warnings = warnings + counter.warnings;
        return ret;
    }
    
    public int addCount(){
        return ++count;
    }
    
    public int addError(){
        return ++errors;
    }
    
    public int addWarning(){
        return ++warnings;
    }

    public int getCount() {
        return count;
    }

    public int getErrors() {
        return errors;
    }

    public int getWarnings() {
        return warnings;
    }
    
    public int getEvents() {
    	int events = warnings + errors; 
    	return events;
    }
    
    

}
